package com.bj58.mis.apm.server.statistics.dto.optimize;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * cuboid 构建重合率
 */
@ApiModel(description = "Cuboid重合率")
public class CuboidShrink {

    @ApiModelProperty(value = "cuboid的ID")
    private Long cuboid;
    @ApiModelProperty(value = "cuboid的名称")
    private String cuboName;
    @ApiModelProperty(value = "查询次数")
    private Long queryCount;
    @ApiModelProperty(value = "行数")
    private Long rows;
    @ApiModelProperty(value = "相对重合率（相对父级）")
    private Double relativeShrink;
    @ApiModelProperty(value = "绝对重合率（相对根）")
    private Double absoluteShrink;
    @ApiModelProperty(value = "子集cuboid")
    private List<CuboidShrink> subCuboids;

    public Long getCuboid() {
        return cuboid;
    }

    public void setCuboid(Long cuboid) {
        this.cuboid = cuboid;
    }

    public String getCuboName() {
        return cuboName;
    }

    public void setCuboName(String cuboName) {
        this.cuboName = cuboName;
    }

    public Long getRows() {
        return rows;
    }

    public void setRows(Long rows) {
        this.rows = rows;
    }

    public Double getRelativeShrink() {
        return relativeShrink;
    }

    public void setRelativeShrink(Double relativeShrink) {
        this.relativeShrink = relativeShrink;
    }

    public Double getAbsoluteShrink() {
        return absoluteShrink;
    }

    public void setAbsoluteShrink(Double absoluteShrink) {
        this.absoluteShrink = absoluteShrink;
    }

    public Long getQueryCount() {
        return queryCount;
    }

    public void setQueryCount(Long queryCount) {
        this.queryCount = queryCount;
    }

    public List<CuboidShrink> getSubCuboids() {
        return subCuboids;
    }

    public void setSubCuboids(List<CuboidShrink> subCuboids) {
        this.subCuboids = subCuboids;
    }
}
